package com.h1909d.weinfo.net;

import com.h1909d.weinfo.bean.DailyNewsBean;
import com.h1909d.weinfo.bean.NewsDetailBean;
import com.h1909d.weinfo.bean.SectionsBean;

import io.reactivex.Flowable;
import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;

public interface ZhihuService {

    String sUrl = "http://news-at.zhihu.com/api/4/";

    /**
     * 2)最新日报
     * news/latest
     * 3)往期日报
     * news/before/{date}   日期格式(20181206)
     */

    @GET("news/latest")
    Flowable<DailyNewsBean> getLatestNews();

    @GET("news/before/{date}")
    Flowable<DailyNewsBean> getOldNews(@Path("date") String date);

    @GET("news/{news_id}")
    Flowable<NewsDetailBean>getNewsDetail(@Path("news_id")int news_id);

}
